package com.fh.shop.api.book.param;

import com.fh.shop.api.common.Page;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class BookQueryParam extends Page implements Serializable {
    private String bookName;
    private String author;
    @DateTimeFormat(pattern = "yyyy-MM-dd") //前台向后台传参
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd") //前台向后台传参
    private Date endDate;
    private BigDecimal startPrice;
    private BigDecimal endPrice;
}
